﻿<!doctype html>
<html>
    <head>
        <title>CORS EasyXDM</title>
        <script type="text/javascript" src="jquery-1.11.1.js"></script>
        <script type="text/javascript" src="json2.js"></script>
        <script type="text/javascript" src="easyXDM.js"></script>
        <script>
          var remote = new easyXDM.Rpc({
            local: "name.html",
            swf: "easyxdm.swf"
          }, {
            local: {
              request: function (config, success, error) {
                var options = $.extend(config, {
                  success: function (data, textStatus, jqXHR) {
                    success({
                      data: jqXHR.responseText,
                      status: jqXHR.status
                    });
                  },
                  error: function (jqXHR, textStatus, errorThrown) {
                    error(jqXHR.status, jqXHR.responseText);
                  }
                });
                $.ajax(options);
              }
            }
          });
        </script>
    </head>
    <body>
    </body>
</html>
